<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">


        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">案件编号</td><td id="number" class="tv"></td><td class="tt">案件名称</td><td id="name" class="tv"></td></tr>
                <tr><td class="tt">案件类型</td><td id="type_name" class="tv"></td><td class="tt">案件年度</td><td id="year" class="tv"></td></tr>
                <tr><td class="tt">案由</td><td class="tv" id="cause" colspan="3"></td></tr>
                <tr><td class="tt">涉案单位</td><td id="she_unit_name" class="tv"></td><td class="tt">涉案项目</td><td id="engin" class="tv"></td></tr>
                <tr><td class="tt">项目负责人</td><td id="xianger" class="tv"></td><td class="tt">联系电话</td><td id="xiangtel" class="tv"></td></tr>
                <tr><td class="tt">原告</td><td id="gao_yuan" class="tv"></td><td class="tt">被告</td><td id="gao_bei" class="tv"></td></tr>
                <tr><td class="tt">诉讼标的(元)</td><td id="biaofee" class="tv"></td><td class="tt">案件跟进人</td><td id="gener" class="tv"></td></tr>
                <tr><td class="tt">案件状态</td><td class="tv" id="zhuang" colspan="3"></td></tr>
                <tr><td class="tt">案件进度</td><td class="tv" id="state_name" colspan="3"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jindu_3" class="table-box tablenes jindudiv layui-hide">
            <div class="title">准备阶段</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">诉讼准备</td><td class="tv" id="bei_su" colspan="3"></td></tr>
                <tr><td class="tt">诉讼策略</td><td class="tv" id="bei_ce" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jindu_6" class="table-box tablenes jindudiv layui-hide">
            <div class="title">立案</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">立案日期</td><td id="li_dt" class="tv"></td><td class="tt">受理法院</td><td id="li_shou" class="tv"></td></tr>
                <tr><td class="tt">预计诉讼费用(元)</td><td class="tv" id="li_sufee" colspan="3"></td></tr>
                <tr><td class="tt">案情描述</td><td class="tv" id="li_miao" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jindu_9" class="table-box tablenes jindudiv layui-hide">
            <div class="title">一审</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">一审案号</td><td id="yi_number" class="tv"></td><td class="tt">一审审理法院</td><td id="yi_shen" class="tv"></td></tr>
                <tr><td class="tt">一审开庭时间</td><td id="yi_dt" class="tv"></td><td class="tt">一审诉讼费(元)</td><td id="yi_sufee" class="tv"></td></tr>
                <tr><td class="tt">一审案情</td><td class="tv" id="yi_an" colspan="3"></td></tr>
                <tr><td class="tt">一审判决/调解内容</td><td class="tv" id="yi_pan" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jindu_12" class="table-box tablenes jindudiv layui-hide">
            <div class="title">二审</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">二审案号</td><td id="er_number" class="tv"></td><td class="tt">二审审理法院</td><td id="er_shen" class="tv"></td></tr>
                <tr><td class="tt">二审开庭时间</td><td id="er_dt" class="tv"></td><td class="tt">二审诉讼费(元)</td><td id="er_sufee" class="tv"></td></tr>
                <tr><td class="tt">二审案情</td><td class="tv" id="er_an" colspan="3"></td></tr>
                <tr><td class="tt">二审判决/调解内容</td><td class="tv" id="er_pan" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jindu_15" class="table-box tablenes jindudiv layui-hide">
            <div class="title">执行</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">执行案号</td><td id="zhi_number" class="tv"></td><td class="tt">执行法院</td><td id="zhi_yuan" class="tv"></td></tr>
                <tr><td class="tt">申请执行日期</td><td class="tv" id="zhi_dt" colspan="3"></td></tr>
                <tr><td class="tt">执行情况说明</td><td class="tv" id="zhi_shuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jindu_18" class="table-box tablenes jindudiv layui-hide">
            <div class="title">结案</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">结案时间</td><td id="jie_dt" class="tv"></td><td class="tt">诉讼费合计(元)</td><td id="jie_sufee" class="tv"></td></tr>
                <tr><td class="tt">结案说明</td><td class="tv" id="jie_shuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div id="jiao" class="table-box tablenes layui-hide">
            <div class="title">案件移交</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">移交人</td><td id="jiao_yi" class="tv"></td><td class="tt">接收人</td><td id="jiao_jie" class="tv"></td></tr>
                <tr><td class="tt">交接时间</td><td class="tv" id="jiao_dt" colspan="3"></td></tr>
                <tr><td class="tt">移交说明</td><td class="tv" id="jiao_shuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div><?php include "../public/upinfo_show.php";?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_legal_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                $("#number").text(data.number);
                $("#name").text(data.name);
                $("#type_name").text(data.type_name);
                $("#year").text(data.year);
                $("#cause").text(data.cause);
                $("#xianger").text(data.xianger);
                $("#xiangtel").text(data.xiangtel);
                $("#gao_yuan").text(data.gao_yuan);
                $("#gao_bei").text(data.gao_bei);
                $("#biaofee").text(data.biaofee);
                $("#gener").text(data.gener);
                $("#zhuang").text(data.zhuang);
                $("#state_name").text(data.state_name);
                $("#explain").text(data.explain);
                $("#bei_su").text(data.bei_su);
                $("#bei_ce").text(data.bei_ce);
                $("#li_dt").text(data.li_dt);
                $("#li_shou").text(data.li_shou);
                $("#li_sufee").text(data.li_sufee);
                $("#li_miao").text(data.li_miao);
                $("#yi_number").text(data.yi_number);
                $("#yi_shen").text(data.yi_shen);
                $("#yi_dt").text(data.yi_dt);
                $("#yi_sufee").text(data.yi_sufee);
                $("#yi_an").text(data.yi_an);
                $("#yi_pan").text(data.yi_pan);
                $("#er_number").text(data.er_number);
                $("#er_shen").text(data.er_shen);
                $("#er_dt").text(data.er_dt);
                $("#er_sufee").text(data.er_sufee);
                $("#er_an").text(data.er_an);
                $("#er_pan").text(data.er_pan);
                $("#zhi_number").text(data.zhi_number);
                $("#zhi_yuan").text(data.zhi_yuan);
                $("#zhi_dt").text(data.zhi_dt);
                $("#zhi_shuo").text(data.zhi_shuo);
                $("#jie_dt").text(data.jie_dt);
                $("#jie_sufee").text(data.jie_sufee);
                $("#jie_shuo").text(data.jie_shuo);
                $("#she_unit_name").text(data.she_unit_name);




                var engin_info = res.data.engin_info;
                if(engin_info){
                    $("#engin").text(engin_info.name);
                }


                var state = res.data.state;
                for (var key in state){
                    if(in_array(key, res.data.jinduArr)){
                        $("#jindu_"+key).removeClass('layui-hide');
                    }else{
                    }
                }

                if(data.isjiao > 0){
                    $("#jiao").removeClass('layui-hide');
                    $("#jiao_yi").text(data.jiao_yi);
                    $("#jiao_jie").text(data.jiao_jie);
                    $("#jiao_dt").text(data.jiao_dt);
                    $("#jiao_shuo").text(data.jiao_shuo);
                }


                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('legal', param_id);
    });



</script>
</body>
</html>




